package com.atguigu.daijia.customer.service;

import com.atguigu.daijia.model.entity.customer.CustomerInfo;
import com.atguigu.daijia.model.form.customer.UpdateWxPhoneForm;
import com.atguigu.daijia.model.vo.customer.CustomerLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import me.chanjar.weixin.common.error.WxErrorException;

public interface CustomerInfoService extends IService<CustomerInfo> {

    /**
     * 小程序登录
     * @param code
     * @return
     */
    Long login(String code) throws WxErrorException;

    /**
     * 获取用户登录信息接口
     * @param customerId
     * @return
     */
    CustomerLoginVo getCustomerInfo(Long customerId);

    /**
     * 更新客户微信手机号
     * @param form
     * @return
     */
    Boolean updateWxPhoneNumber(UpdateWxPhoneForm form);

}
